//
//  AllModel.m
//  万词王
//
//  Created by rimi on 2016/12/1.
//  Copyright © 2016年 dongfumei. All rights reserved.
//

#import "AllModel.h"

@implementation AllModel

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}


- (void)getAllData {
    NSString *url=@"http://v.juhe.cn/xhzd/query";
    NSArray *arr = @[@"晓",@"磨",@"未",@"帧",@"悟"];
    
        NSString *str = [NSString stringWithFormat:@"%@",arr[arc4random()%5]];
        NSDictionary *dic=@{@"word":str,@"key":@"3cebd7c01d9ca7aca63a4708d276067f"};
        [NetworkRequestManager getMethod:url withParames:dic Success:^(id respondObject) {
            NSLog(@"%@",respondObject);
            self.dataList = respondObject[@"result"];
            
        } Failure:^(NSError *error) {
            
        }];
    
//    NSString *url_1 = @"http://api.avatardata.cn/ChengYu/Search";
//    NSDictionary *dic_1 = @{@"key":@"55599b7297024aa4af0d75a009c5dedc",@"keyword":str};
//    [NetworkRequestManager getMethod:url_1 withParames:dic_1 Success:^(id respondObject) {
//        NSLog(@"%@",respondObject);
//        self.dataChengYu  = respondObject[@"result"];
//    } Failure:^(NSError *error) {
//        
//    }];
//    
//    self.mutableArray = [@[self.dataList,_dataChengYu]mutableCopy];
//    NSLog(@"%@",self.mutableArray);
}

@end
